package edu.whut.mall.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author wayne
 * @date 2020/11/09
 */
public class GroupBuyOrder implements Serializable {
    private Long id;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 商品购买数量
     */
    private Integer quantity;

    private Long userId;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 支付方式
     */
    private Integer paymentType;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 付款时间
     */
    private Date paymentTime;

    /**
     * 邮费
     */
    private BigDecimal postage;

    /**
     * 发货时间
     */
    private Date sendTime;

    /**
     * 订单关闭时间
     */
    private Date closeTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    private Date createTime;

    /**
     * 总金额
     */
    private BigDecimal totalMoney;

    /**
     * 收货地址
     */
    private String receiveAddress;

    /**
     * 是否删除
     */
    private Integer isDeleted;

    private Integer logisticsPlatform;

    private String logisticsNumber;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public BigDecimal getPostage() {
        return postage;
    }

    public void setPostage(BigDecimal postage) {
        this.postage = postage;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getLogisticsPlatform() {
        return logisticsPlatform;
    }

    public void setLogisticsPlatform(Integer logisticsPlatform) {
        this.logisticsPlatform = logisticsPlatform;
    }

    public String getLogisticsNumber() {
        return logisticsNumber;
    }

    public void setLogisticsNumber(String logisticsNumber) {
        this.logisticsNumber = logisticsNumber;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productId=").append(productId);
        sb.append(", quantity=").append(quantity);
        sb.append(", userId=").append(userId);
        sb.append(", phone=").append(phone);
        sb.append(", userName=").append(userName);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", paymentType=").append(paymentType);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", paymentTime=").append(paymentTime);
        sb.append(", postage=").append(postage);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", closeTime=").append(closeTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", totalMoney=").append(totalMoney);
        sb.append(", receiveAddress=").append(receiveAddress);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", logisticsPlatform=").append(logisticsPlatform);
        sb.append(", logisticsNumber=").append(logisticsNumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}